package com.loveprogrammer.eternity.model.affix;

import com.loveprogrammer.eternity.model.product.Equipment;

/**
 * @version 1.0.0
 * @description: 词缀
 * @author: eric
 * @date: 2022-08-24 17:56
 **/
public interface Affix {

    double ratio_level_one = 2.2;
    double ratio_level_two = 2.7;
    double ratio_level_three = 3.3;
    double ratio_level_four = 4.0;

    Equipment addEffect(Equipment equipment);

    int group();

    String affix();

    default int compute(int level,int base){
        return (int) (base * Math.pow((level/5.0 + 1),2.0) / 15 + base);
    }
}
